.data-page {
    padding: 16px;
    background: #f9fbfc;
}

.page-header {
    margin-bottom: 12px;
}

.status-spacer {
    height: 4px;
}

.title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eef2f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.date-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 6px 2px 10px;
}

.date-scroll::-webkit-scrollbar {
    display: none;
}

.date-pill {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #eef2f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.date-pill.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.date-pill-day {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.date-pill-month {
    font-size: 12px;
    margin-top: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.card {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 12px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.card-title {
    font-weight: 600;
    color: #111827;
}

.card-icon {
    opacity: 0.9;
}

.card-body {
    min-height: 84px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

.chip {
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 8px;
    background: #eef2f7;
    color: #6b7280;
}

.chip-pink {
    background: #ffe8ef;
    color: #e8547e;
}

.chip-warm {
    background: #ffefe6;
    color: #ff6a2b;
}

.center-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    position: relative;
    display: inline-block;
}

.ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring-text {
    text-align: center;
}

.ring-number {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.ring-sub {
    font-size: 12px;
    color: #9ca3af;
}


/* ensure chart ring acts as positioning container for center text */

.chart-ring {
    position: relative;
    width: 110px;
    height: 110px;
}

.wave {
    width: 100%;
    height: 48px;
}

.metric {
    margin-top: 6px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.metric-number {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.metric-unit {
    font-size: 12px;
    color: #9ca3af;
}

.bars {
    display: flex;
    align-items: flex-end;
    height: 48px;
    gap: 8px;
}

.bars span {
    width: 8px;
    background: #26c6a5;
    border-radius: 6px;
    display: inline-block;
}


/* Right-side sheet overlay */

.sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 1000;
}

.sheet-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.sheet-right {
    position: fixed;
    top: 0;
    left: 0%;
    height: 100%;
    width: 100%;
    background: #f9fbfc;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 41;
    display: flex;
    flex-direction: column;
}

.sheet-right.open {
    transform: translateX(0%);
}

.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    position: relative;
}

.sheet-back {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #eef2f7;
    background: #fff;
}

.sheet-title {
    font-weight: 700;
    color: #111827;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.sheet-action {
    width: 40px;
    display: flex;
    justify-content: flex-end;
}

.sheet-card {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 12px;
    margin: 0 16px 12px;
}


/* Bottom share sheet */

.sheet-bottom {
    position: fixed;
    left: 0;
    right: 0;
    /* Tabbar 高度用于内边距占位 */
    --tabbar-h: 56px;
    bottom: 0;
    background: #fff;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    transform: translateY(100%);
    transition: transform .28s ease;
    z-index: 1001;
    padding: 16px;
    /* 适配全面屏和 Tabbar 高度，避免被遮挡 */
    padding-bottom: calc(16px + var(--tabbar-h) + env(safe-area-inset-bottom));
}

.sheet-bottom.open {
    transform: translateY(0);
}

.share-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffb703;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.share-name {
    font-weight: 600;
    color: #111827;
}

.share-input {
    margin-top: 10px;
    background: #f3f4f6;
    border-radius: 10px;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #9ca3af;
}

.share-submit {
    margin-top: 12px;
    width: 84px;
    height: 36px;
    border-radius: 18px;
    background: transparent;
    color: #111827;
    border: none;
    cursor: pointer;
}

.share-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
}

.share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #111827;
}

.share-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-block;
}

.icon.wechat {
    background: #28c445;
}

.icon.moments {
    background: #61d26a;
}

.icon.qq {
    background: #6ab9ff;
}

.icon.weibo {
    background: #ff7b61;
}

.icon.link {
    background: #eef2f7;
}

.sheet-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.sheet-kv-title {
    font-size: 12px;
    color: #9ca3af;
}

.sheet-kv-value {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.sheet-section-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}